<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<form:form commandName="model" cssClass="validate"
	action="app/menu/save">
	<form:hidden path="id" />
	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">父级菜单：</td>
				<td class="td2"><form:input path="parentId" cssClass="hidden" />
					<isperp:treeSelector id="selectParentMenu" url="app/menu/getTree"
						valueControlId="parentId" displayValue="${parentName}"
						displayValueCssClass="required"></isperp:treeSelector></td>
			</tr>
			<tr>
				<td class="td1">名称：</td>
				<td class="td2"><form:input path="name" cssClass="required" />
				</td>
			</tr>
			<tr>
				<td class="td1">图标：</td>
				<td class="td2"><form:input path="icon" cssClass="hidden" /> <isperp:iconSelector
						id="iconSelector" valueControlId="icon"
						displayValue="${model.icon }"></isperp:iconSelector>
				</td>
			</tr>
			<tr>
				<td class="td1">菜单链接：</td>
				<td class="td2"><form:input path="url" cssStyle="width:85%" />
				</td>
			</tr>
			<tr>
				<td class="td1">菜单消息统计链接：</td>
				<td class="td2"><form:input path="countUrl"
						cssStyle="width:85%" /></td>
			</tr>

			<tr>
				<td class="td1">时间间隔：</td>
				<td class="td2"><form:input path="countInterval"
						cssClass="number" />秒</td>
			</tr>
			<tr>
				<td class="td1">用于Webos：</td>
				<td class="td2"><form:checkbox path="useForWebos" /></td>
			</tr>
			<tr>
				<td class="td1">Webos图标：</td>
				<td class="td2"><isperp:photoUploader id="iconImage"
						imgName="iconImage" cutType="0" imgWidth="60" imgHeight="60"
						imgSrc="${model.iconImage}" imgPath="menu/${model.name}"
						imgFormat="png/gif/jpg"></isperp:photoUploader>
				</td>
			</tr>
			<tr>
				<td class="td1">打开方式：</td>
				<td class="td2"><form:select path="openType">
						<form:option value="iframe">iframe窗口</form:option>
						<form:option value="normal">普通模式</form:option>
						<form:option value="window">窗口</form:option>
						<form:option value="newWindow">新窗口</form:option>
					</form:select></td>
			</tr>
			<tr>
				<td class="td1">是否展开：</td>
				<td class="td2"><form:checkbox path="open" />
				</td>
			</tr>

			<tr>
				<td class="td1">排序：</td>
				<td class="td2"><form:input path="orderNum"
						cssClass="number required" /></td>
			</tr>
		</tbody>
	</table>
</form:form>
<isperp:buttonList>
	<button class="submit" onclick="isperp.submitForm();return false;">
		<span class="icon icon-save"></span>提交
	</button>
</isperp:buttonList>